package com.ciklum.vlgu.pages;

import java.lang.reflect.Field;
import java.util.List;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.pagefactory.AjaxElementLocator;
import org.openqa.selenium.support.pagefactory.ElementLocator;

public class DisplayedElementLocator extends AjaxElementLocator {
	
	public DisplayedElementLocator (WebDriver driver, Field field, int timeOutInSeconds) {
		super(driver, field, timeOutInSeconds);
	}
	
	protected boolean isElementUsable(WebElement element) {
		return element.isDisplayed();
	}
}
